/* 基础样式 */
page {
  height: 100%;
  background-color: #f7f7f7;
}
/* 自定义滚动条样式 (仅iOS支持) */
scroll-view ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

scroll-view ::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
}

scroll-view ::-webkit-scrollbar-track {
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.1);
}
scroll-view ::-webkit-scrollbar {
  width: 2px;
  background-color: transparent;
}

scroll-view ::-webkit-scrollbar-thumb {
  background-color: #ccc;
}
.container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 分类容器 */
.category-container {
  display: flex;
  height: calc(100vh - 44px - env(safe-area-inset-bottom));
}

/* 左侧导航 */
.left-nav {
  width: 25%;
  height: 100%;
  background-color: #f5f5f5;
}

.nav-item {
  height: 100rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28rpx;
  color: #333;
  position: relative;
  padding: 0 10rpx;
  text-align: center;
  box-sizing: border-box;
}

.nav-item.active {
  color: #ff5000;
  background-color: #fff;
  font-weight: bold;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 30rpx;
  height: 40rpx;
  width: 6rpx;
  background-color: #ff5000;
}

/* 右侧内容 */
.right-content {
  width: 75%;
  height: 100%;
  padding: 20rpx;
  box-sizing: border-box;
}

.category-section {
  margin-bottom: 40rpx;
}

.category-title {
  font-size: 30rpx;
  font-weight: bold;
  margin-bottom: 20rpx;
  color: #333;
}

.goods-grid {
  display: flex;
  gap: 20rpx;
  flex-wrap: wrap;
  justify-content: flex-start;
  row-gap: 15px;
  /* 行间距 */
  column-gap: 10px;
  /* 列间距 */
}

.goods-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 33.333%;
  max-width: 33.333%;
}

.item-box {
  border-radius: 8rpx;
  background-color: #ffffff;flex:1;width: 75%;
}

.goods-image {
  width: 100%;
  height: 140rpx;
}

.goods-name {
  font-size: 24rpx;
  color: #666;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}